package com.leyou.user.inter.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author zqq
 * @ClassName UpdateMyInfo
 * @Description
 * @date 2020/3/30-22:48
 */
@Data
public class UpdateMyInfo {

    /** 用户名 */
    @ApiModelProperty(value = "用户名", name = "username")
    private String username;

    /** 手机号 */
    @ApiModelProperty(value = "手机号", name = "phone")
    private String phone;

    /** 密码 */
    @ApiModelProperty(value = "密码", name = "password")
    @JsonIgnore
    private String password;

    /** 真实姓名 */
    @ApiModelProperty(value = "真实姓名", name = "name")
    private String name;

    /** 出生日期 */
    @ApiModelProperty(value = "出生日期", name = "birthDate")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthDate;

    /** 性别：0/保密 1/男 2/女 */
    @ApiModelProperty(value = "性别：0/保密 1/男 2/女", name = "sex")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Integer sex;

    /** 头像 */
    @ApiModelProperty(value = "头像", name = "headImg")
    private String headImg;

    /** 联系地址 */
    @ApiModelProperty(value = "联系地址", name = "adress")
    private String adress;

}
